package com.nation.serviceImpl;

import com.nation.dao.DocumentDao;
import com.nation.domain.VImportantLiteratureData;
import com.nation.service.DocumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/9.
 */
@Service
public class DocumentServiceImpl implements DocumentService{
    @Autowired
    private DocumentDao DocumentDao;
    @Override
    public List<VImportantLiteratureData> findAll() {
        return DocumentDao.findAll();
    }

    @Override
    public VImportantLiteratureData findByCountryCode(String country_code) {
        return DocumentDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean update(VImportantLiteratureData vImportantLiteratureData) {
        return null;//DocumentDao.update(vImportantLiteratureData);
    }

    @Override
    public List<VImportantLiteratureData> findByLimit(Map<String, Object> map) {
        return DocumentDao.findByLimit(map);
    }

    @Override
    public Boolean insert(VImportantLiteratureData vImportantLiteratureData) {
        return DocumentDao.insert(vImportantLiteratureData);
    }

    @Override
    public List<VImportantLiteratureData> findByCondition(Map<String, Object> map) {
        return DocumentDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return null;
    }

    @Override
    public VImportantLiteratureData findByDocumentCode(String document_code) {
        return DocumentDao.findByDocumentCode(document_code);
    }
}
